package com.example.movie.model

import com.bawei.movie.entity.MovieTypeEntity
import com.example.movie.api.MovieServerApi
import com.example.network.BaseResponse
import javax.inject.Inject

class MovieRepository @Inject constructor(private val apiServer:MovieServerApi){

    //获取一级分类
    suspend fun getMutilType():BaseResponse<List<MovieTypeEntity>>{
        return apiServer.getMutilType()
    }
    //获取二级分类,点击一级给二级id
    suspend fun getMutilTypeById(pid:Int):BaseResponse<List<MovieTypeEntity>>{
        return apiServer.getMutilTypeByPid(pid)
    }


}